<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:65:"D:\wamp\www\serv\public/../application/admin\view\room\index.html";i:1554729604;s:49:"D:\wamp\www\serv\application\admin\view\base.html";i:1554727840;s:60:"D:\wamp\www\serv\application\admin\view\public\sidemenu.html";i:1554730811;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>后台管理-网络报修管理</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="author" content="Bluth Company">
  <link rel="shortcut icon" href="/serv/public/static/assets/ico/favicon.html">
  <link href="/serv/public/static/assets/css/bootstrap.css" rel="stylesheet">
  <link href="/serv/public/static/assets/css/theme.css" rel="stylesheet">
  <link href="/serv/public/static/assets/css/font-awesome.min.css" rel="stylesheet">
  <link href="/serv/public/static/assets/css/alertify.css" rel="stylesheet">

  <link rel="Favicon Icon" href="favicon.ico">
  <style type="text/css">
    .line-limit-length {
      width: 300px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  </style>
  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>
  <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/serv/public/static/assets/img/logo.png" alt="Realm Admin Template">
          </div>
          <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
            <ul class="pull-left">
              <li><a id="messages" data-notification="2" href="#"><i class="icon-envelope"></i> Messages</a></li>
              <li><a id="notifications" data-notification="3" href="#"><i class="icon-globe"></i> Notifications</a></li>
            </ul>
            <ul class="pull-right">
              <li><a href="<?php echo url('index/logout'); ?>"><i class="icon-off"></i> Logout</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i
                    class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i
                    class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">
      
      <!-- Side menu -->
<div class="sidebar-nav nav-collapse collapse">
    <div class="user_side clearfix">
        <img src="/serv/public/static/assets/img/odinn.jpg" alt="Odinn god of Thunder">
        <h5><?php echo \think\Session::get('realname'); ?></h5>
        <a href="#"><i class="icon-cog"></i> Settings</a>
    </div>
    <div class="accordion" id="accordion2">
        <?php if(\think\Session::get('rid')==1 or \think\Session::get('rid')==3): ?>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_F79999" href="<?php echo url('net/index'); ?>"><i class="icon-dashboard"></i> <span>网络报修</span></a>
            </div>
        </div>
        <?php endif; if(\think\Session::get('rid')==2 or \think\Session::get('rid')==3): ?>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_F6F1A2" href="<?php echo url('room/index'); ?>"><i class="icon-tasks"></i> <span>物业报修</span></a>
            </div>
        </div>
        <?php endif; if(\think\Session::get('rid')==3): ?>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_C1F8A9" href="<?php echo url('suggest/index'); ?>"><i class="icon-bar-chart"></i> <span>投诉建议</span></a>
            </div>
        </div>
        <?php endif; if(\think\Session::get('rid')==3): ?>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_9FDDF6" href="<?php echo url('role/index'); ?>"><i class="icon-bullhorn"></i> <span>角色管理</span></a>
            </div>
        </div>
        <?php endif; if(\think\Session::get('rid')==3): ?>
        <div class="accordion-group">
            <div class="accordion-heading">
                <a class="accordion-toggle b_F5C294" href="<?php echo url('user/userlist'); ?>"><i class="icon-user"></i> <span>用户管理</span></a>
            </div>
        </div>
        <?php endif; ?>
    </div>
</div>
<script>
    $(function(){
        $(".accordion-toggle").on("click",function(){
            $(".accordion-toggle").removeClass("active");
            $(this).addClass("active");
        });
    })
</script>
<!-- /Side menu -->



      
      <!-- Main window -->
      <div class="main_container" id="users_page">

        <div class="row-fluid">
          <ul class="breadcrumb">
            <li><a href="#">Home</a> <span class="divider">/</span></li>
            <li><a href="#">Pages</a> <span class="divider">/</span></li>
            <li class="active">Admin</li>
          </ul>
          <h2 class="heading">
            Admin
            <div class="btn-group pull-right">
              <button class="btn"><i class="icon-download-alt"></i> Export</button>
              <button class="btn"><i class="icon-envelope"></i> Email</button>
              <button class="btn"><i class="icon-cog"></i> Settings</button>
            </div>
          </h2>
        </div> <!-- /row-fluid -->



        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>admin</h5>
              <div class="widget-buttons">
                <a href="add.html" data-title="Add User" data-toggle="modal" data-target="#example_modal"><a
                    href="add.html"><i class="icon-plus"></i></a></a>
                <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i
                    class="icon-chevron-up"></i></a>
              </div>
            </div>
            
<div class="widget-body">
    <table id="users" class="table table-striped table-bordered dataTable">
        <thead>
        <tr>
            <th>区域</th>
            <th>报修地点</th>
            <th>报修内容</th>
            <th>姓名</th>
            <th>电话</th>
            <th>预约报修时间</th>
            <th>报修时间</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($rooms) || $rooms instanceof \think\Collection || $rooms instanceof \think\Paginator): $i = 0; $__LIST__ = $rooms;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <tr title="<?php echo $vo['content']; ?>">
            <td><?php echo $vo['area']; ?><?php echo $vo['building']; ?></td>
            <td><?php echo $vo['dortext']; ?></td>
            <td><div class="line-limit-length"><?php echo $vo['content']; ?></div></td>
            <td><?php echo $vo['name']; ?></td>
            <td><?php echo $vo['tele']; ?></td>
            <td><?php echo $vo['domtime']; ?></td>
            <td><?php echo $vo['addtime']; ?></td>
            <td>
                <div class="btn-group">
                    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        操作
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu pull-right">
                        <!-- <li><a href="<?php echo url('resetpw',['uid'=>$vo['id']]); ?>"><i class="icon-wrench"></i> 重置密码</a></li> -->
                        <li><a href="<?php echo url('edit',['id'=>$vo['id']]); ?>"><i class="icon-edit"></i> 修改</a></li>
                        <li><a href="<?php echo url('del',['id'=>$vo['id']]); ?>"><i class="icon-trash"></i> 删除</a></li>
                    </ul>
                </div>

            </td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
</div> <!-- /widget-body -->


          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div>
    <!--/.fluid-container-->
  </div><!-- wrap ends-->

  <!-- Example Modal -->
  <div id="example_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
    aria-hidden="true">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3 id="myModalLabel">添加用户</h3>
    </div>
    <div class="modal-body">
    </div>
    <div class="modal-footer">
      <button class="btn" data-dismiss="modal" aria-hidden="true">重置</button>
      <button class="btn btn-primary">添加</button>
    </div>
  </div>

  <script src="/serv/public/static/assets/js/jquery.min.js"></script>
  <script src="/serv/public/static/assets/js/jquery-ui.min.js"></script>
  <script src="/serv/public/static/assets/js/raphael-min.js"></script>
  <script src="/serv/public/static/assets/js/bootstrap.js"></script>
  <script src='/serv/public/static/assets/js/sparkline.js'></script>
  <script src='/serv/public/static/assets/js/morris.min.js'></script>
  <script src="/serv/public/static/assets/js/jquery.dataTables.min.js"></script>
  <script src="/serv/public/static/assets/js/jquery.masonry.min.js"></script>
  <script src="/serv/public/static/assets/js/jquery.imagesloaded.min.js"></script>
  <script src="/serv/public/static/assets/js/jquery.facybox.js"></script>
  <script src="/serv/public/static/assets/js/jquery.alertify.min.js"></script>
  <script src="/serv/public/static/assets/js/jquery.knob.js"></script>
  <script src='/serv/public/static/assets/js/fullcalendar.min.js'></script>
  <script src='/serv/public/static/assets/js/jquery.gritter.min.js'></script>
  <script src="/serv/public/static/assets/js/realm.js"></script>
</body>
<script>
  $(".label").on("click", function () {
    $(this).toggleClass("label-success");
    if ($(this).text() == "禁用")
      $(this).text("正常");
    else {
      $(this).text("禁用");
      // $vo.status == 0;
    }
  })
</script>

</html>
